//
//  MainWindowController.swift
//  SFDevFly
//
//  Created by shen on 2023/9/27.
//

import Cocoa

class MainWindowController: NSWindowController {
    lazy var mainViewController: MainViewController = {
        let mainVc = MainViewController()
        return mainVc
    }()

    override func windowDidLoad() {
        super.windowDidLoad()
        contentViewController = mainViewController
        window?.delegate = self
        window?.title = "SFDev"
    }
}

extension MainWindowController: NSWindowDelegate {
    /// 点击关闭按钮是否销毁窗口
    func windowShouldClose(_ sender: NSWindow) -> Bool {
        return true
    }
}
